#pragma once

#include "MultiObjEnvRenderer.hpp"
#include "../zRenderScript/zRenderScript.hpp"

namespace zzz{
class zScriptRenderer : public MultiObjEnvRenderer
{
public:
  zScriptRenderer();
  void LoadRenderScript(const char *filename);
  void SingleCommand(const string &str);
  virtual void OnMouseWheel(unsigned int nFlags, int zDelta, int x,int y);
  virtual void OnSize(unsigned int nType, int cx, int cy);
  virtual void OnChar(unsigned int nChar, unsigned int nRepCnt, unsigned int nFlags);

protected:
  virtual bool InitData();
  virtual bool Draw();
protected:
  zRenderScript m_zRS;
  bool loaded;
};
}